#include "pluginmanagetreewidgetitem.h"

PluginManageTreeWidgetItem::PluginManageTreeWidgetItem(QString text): QListWidgetItem(text)
{
    m_pluginPtr = 0;
}

PluginManageTreeWidgetItem::~PluginManageTreeWidgetItem()
{
    delete m_pluginPtr;
}

void PluginManageTreeWidgetItem::setPlugin(Plugin* plugin)
{
    if(m_pluginPtr == 0)
        m_pluginPtr = plugin;
}

Plugin* PluginManageTreeWidgetItem::getPlugin()
{
    return m_pluginPtr;
}
